Skip to content

Comments

window-rules: fix view-action-interface output detection logic#2976

Merged
ammen99 merged 4 commits intoWayfireWM:masterfrom
mrsteve0924:pr-output-names
Feb 22, 2026
Merged

window-rules: fix view-action-interface output detection logic#2976
ammen99 merged 4 commits intoWayfireWM:masterfrom
mrsteve0924:pr-output-names

Conversation

@mrsteve0924
Copy link
Contributor

I added logic so the make+model+serial number could be used with window-rules in addition to the usual connector names like DP-1, HDMI-A-1. This helps when connector names change especially when using a laptop dock connected to external monitors.

I had to update literal.cpp in wf-utils. see separate PR for that. thanks

@mrsteve0924
Copy link
Contributor Author

mrsteve0924 commented Feb 14, 2026

i found a regression. when wstroke plugin is enabled, activating the button modifier causes system to freeze. wstroke probably not expecting output names other than the connector names.

EDIT: turns out this problem with wstroke did not come from this PR. It was an issue with the wstroke plugin itself which is being fixed. dkondor/wstroke#18

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nitpick, otherwise lgtm.

std::string model = wo->handle->model ? wo->handle->model : "";
std::string serial = wo->handle->serial ? wo->handle->serial : "";

LOGD("Output detected: connector=", wo->to_string(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one would be way too verbose I think, I would prefer to remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i can remove lines 547-550.

@ammen99 ammen99 merged commit b36615a into WayfireWM:master Feb 22, 2026
3 of 4 checks passed
@ammen99
Copy link
Member

ammen99 commented Feb 22, 2026

Thanks!

@mrsteve0924 mrsteve0924 deleted the pr-output-names branch February 22, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants